function gets(pageNum) {
    var pageN = pageNum;
    $("#pageNum").val(pageN);
    var serializeArray = $("#more-info-dialog").serializeArray();
    $.ajax({
            url: '/myspringboot/StatisticsController/StatisticsFindAllDi',
            type: 'post',
            dataType: "json",
            data: serializeArray,
            success: function (result) {
                var result = result.data;
                yibu(result.pages, result.pageNum);
                var list = result.list;
                $(".a").empty();
                for (var i = 0; i < list.length; i++) {
                    var a = i + 1;
                    var drugAtegory = list[i].drugAtegory;
                    if (drugAtegory != null) {
                        var daName = drugAtegory.daName;
                    }
                    var purchaseOrder = list[i].purchaseOrder;
                    if (purchaseOrder != null) {
                        //订单编号
                        var poNumber = purchaseOrder.poNumber;
                        var poName = purchaseOrder.poName;
                        var poStateTime = purchaseOrder.poStateTime;
                        var poEndTime = purchaseOrder.poEndTime;
                    }
                    var drugInformation = list[i].drugInformation;
                    if (drugInformation != null) {
                        //药品流水号
                        var diNumer = drugInformation.diNumer;
                        //通用名
                        var diName = drugInformation.diName;
                        //剂型
                        var diForm = drugInformation.diForm;
                        //规格
                        var diSpecifications = drugInformation.diSpecifications;
                        //单位
                        var diUnit = drugInformation.diUnit;
                        //转换系数
                        var diCc = drugInformation.diCc;
                       //交易价
                        var diNewPrice = drugInformation.diNewPrice;
                        //中标价
                        var diBiddingPrice = drugInformation.diBiddingPrice;
                    } else {
                        var diNumer = "null"
                        var diName = "null"
                        var diForm = "null"
                        var diSpecifications = "null"
                        var diUnit = "null"
                        var diCc = "null"
                        var diNewPrice = "null"
                    }
                    var podiOrder = list[i].podiOrder;
                    var podiOrderTotal = list[i].podiOrderTotal;
                    var podiDelivery = list[i].podiDelivery;
                    var podiDeliveryTotal = list[i].podiDeliveryTotal;
                    var podiReturn = list[i].podiReturn;
                    var podiReturnTotal = list[i].podiReturnTotal;
                    var podiSettlement = list[i].podiSettlement;
                    var podiSettlementTotal = list[i].podiSettlementTotal;
                    var podiWarehousing = list[i].podiWarehousing;
                    var podiWarehousingTotal = list[i].podiWarehousingTotal;
                    var podiState = list[i].podiState;
                    var state = null;
                    if (podiState == 0) {
                        state = "已发货"
                    } else if (podiState == 1) {
                        state = "未发货"
                    } else if (podiState == 2) {
                        state = "已入库"
                    }
                    //生产企业
                    var manufacturer = list[i].manufacturer;
                    if (manufacturer != null) {
                        var mfName = manufacturer.mfName;
                    }
                    //采购医院
                    var hospital = list[i].hospital;
                    if (hospital != null) {
                        var hName = hospital.hName;
                    } else {
                        var hName = "null"
                    }
                    var tr = '<tr>' +
                        '<td>' + a + '</td>' +
                        '<td>' + hName + '</td>' +
                        '<td>' + poNumber + '</td>' +
                        '<td>' + poName + '</td>' +
                        '<td>' + poStateTime + '</td>' +
                        '<td>' + poEndTime + '</td>' +
                        '<td>' + diNumer + '</td>' +
                        '<td>' + diName + '</td>' +
                        '<td>' + daName + '</td>' +
                        '<td>' + diForm + '</td>' +
                        '<td>' + diSpecifications + '</td>' +
                        '<td>' + diUnit + '</td>' +
                        '<td>' + diCc + '</td>' +
                        '<td>' + mfName + '</td>' +
                        '<td>' + diBiddingPrice + '</td>' +
                        '<td>' + diNewPrice + '</td>' +
                        '<td>' + podiOrder + '</td>' +
                        '<td>' + podiOrderTotal + '</td>' +
                        '<td>' + state + '</td>' +
                        '<td>' + podiWarehousing + '</td>' +
                        '<td>' + podiWarehousingTotal + '</td>' +
                        '</tr>'
                    $(".a").append(tr);
                }
            }
        }
    )
}
